package com.HomeWork12.work1;

public class InstrumentTest {
    public static void main(String[] args) {
        Piano piano = new Piano();
        piano.play();
        Piano piano1=null;
        piano1.play();
//        testPlay(piano);
//        Instrument violin = new Violin();
//        testPlay(violin);

    }
    public static void testPlay(Instrument instrument){
        instrument.play();

    }
}
